

package cn.shengchao.examstar.distribute.ohs.remote.rpc;

import cn.shengchao.examstar.distribute.infrastrure.service.DistributeNodeInfoService;
import cn.shengchao.examstar.distribute.ohs.local.appservice.DistributeNodeRoleChainDomainService;
import cn.shengchao.examstar.rpc.distribute.DistributeNodeRoleChainApi;
import cn.shengchao.examstar.rpc.distribute.dto.DistributeNodeInfoChangeNodeDto;
import cn.shengchao.examstar.rpc.distribute.dto.DistributeNodeInfoEmployeeLeaveDto;
import cn.shengchao.examstar.rpc.distribute.dto.DistributeNodeInfoPercentDto;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @program: examstarapi
 * @description: 分销链维护Rpc调用
 * @author: Xiong weiqiang
 * @create: 2025-03-25 19:52
 */
@DubboService
public class DistributeNodeRoleChainDubboApi implements DistributeNodeRoleChainApi {
    @Autowired
    private DistributeNodeRoleChainDomainService distributeUserRoleChainDomainService;
    @Autowired
    private DistributeNodeInfoService distributeNodeInfoService;

    @Override
    public void editDistributeUserStablePercent(DistributeNodeInfoPercentDto distributeUserInfoPercentDto) {
        distributeUserRoleChainDomainService.editDistributeUserStablePercent(distributeUserInfoPercentDto);
    }

    @Override
    public void changeDistributeUserUpLevelNode(DistributeNodeInfoChangeNodeDto distributeUserInfoChangeNodeDto) {
        distributeUserRoleChainDomainService.changeDistributeUserUpLevelNode(distributeUserInfoChangeNodeDto);
    }

    @Override
    public void changeDistributeUserEmployeeLeave(DistributeNodeInfoEmployeeLeaveDto distributeNodeInfoEmployeeLeaveDto) {
        distributeUserRoleChainDomainService.changeDistributeUserEmployeeLeave(distributeNodeInfoEmployeeLeaveDto);
    }
}